#ifndef ROOMSHOW_H
#define ROOMSHOW_H

#include <QWidget>
#include <QStandardItem>
#include <QMessageBox>
#include"dlg_roomcontrol.h"

namespace Ui {
class roomshow;
}

class roomshow : public QDialog
{
    Q_OBJECT

public:
    explicit roomshow(QWidget *parent = nullptr,int f=2);
    ~roomshow();
    void initPage(QString strCondition = "");

    dlg_roomcontrol *page2=NULL;

private slots:
    //搜索框
    void on_lineEdit_textChanged(const QString &arg1);
    //增加按钮和修改按钮
    void on_btn_add_alt_clicked();

    //删除按钮
    void on_btn_del_clicked();
    //查询按钮
    void on_btn_find_clicked();
    //预约按钮
    void on_btn_resv_clicked();
private:

    Ui::roomshow *ui;
    QStandardItemModel rs_mode;
    int flag;
    QString keyword;
};

#endif // ROOMSHOW_H

